#!/bin/bash

cd /home/babytech/EDU
pwd

cp buildroot-2017.02.4/output/images/zImage .
cp buildroot-2017.02.4/output/images/vexpress-v2p-ca9.dtb .
cp buildroot-2017.02.4/output/images/rootfs.ext2 .

sudo qemu-system-arm -kernel zImage -dtb vexpress-v2p-ca9.dtb -nographic -M vexpress-a9 -m 512M -append "root=/dev/mmcblk0 console=ttyAMA0" -sd rootfs.ext2 -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 -smp 4
